<%@ page import="java.awt.*" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
    <base href="<%=request.getContextPath()+"/"%>">
<link href="css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        <c:if test="${requestScope.flag ==1}">
        alert("签到成功")
        </c:if>

        <c:if test="${requestScope.flag==0}">
        alert("失败")
        </c:if>

        <c:if test="${requestScope.flag ==3}">
        alert("只能签到一次")
        </c:if>

        <c:if test="${requestScope.flag1 ==1}">
        alert("签退成功")
        </c:if>

        <c:if test="${requestScope.flag1==0}">
        alert("签退失败")
        </c:if>

        <c:if test="${requestScope.flag1 ==3}">
        alert("只能签退一次")
        </c:if>
    </script>
</head>

<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">考勤管理</a></li>
    <li><a href="#">签到签退</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>基本信息</span></div>
    
    <ul class="forminfo">
    	<li><label>&nbsp;</label><input name="" type="button" class="btn" value="签到" onclick="checkin()"/> 每天签到一次，不可重复签到</li>
        <li><label></label></li>
    	<li><label>&nbsp;</label></li>
      	<li><label>&nbsp;</label><input name="" type="button" class="btn" value="签退" onclick="checkout()"/>可重复签退，以最后一次签退为准</li>
        </from>
    </ul>

<%--        <% if ((int)request.getAttribute("msg")==3){--%>
<%--            System.out.println("test");--%>
<%--        } %>--%>
<%--        <script type="text/javascript">--%>
<%--            alert("成功");--%>
<%--        </script>--%>




<%--        <%if ((int)request.getAttribute("msg")==0){%>--%>
<%--        <script type="text/javascript">--%>
<%--            alert("失败");--%>
<%--        </script>--%>
<%--        &lt;%&ndash;%>
<%--            }--%>
<%--        %>--%>

<%--        <%if ((int)request.getAttribute("msg")==3){%>--%>
<%--        <script type="text/javascript">--%>
<%--            alert("只能签一次");--%>
<%--        </script>--%>
<%--        &lt;%&ndash;%>
<%--            }--%>
<%--        %>--%>

        <script type="text/javascript">
            function checkin() {
                location.href = "ptu/DutyServlet?method=signIn";
            }
            function checkout() {
                location.href = "ptu/DutyServlet?method=signOut";
            }

        </script>
    
    </div>


</body>

</html>
